package demo;

import java.io.FileReader;
import java.io.FileWriter;
import java.util.Comparator;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class Test3 {
    public static void main(String[] args) throws Exception {
        Properties prop = new Properties();
        FileReader fr = new FileReader("Day13\\c.txt");
        prop.load(fr);
        fr.close();

        Set<Map.Entry<Object, Object>> entries = prop.entrySet();
        for (Map.Entry<Object, Object> entry : entries) {
            Object key = entry.getKey();
            System.out.println(key);
        }


        FileWriter fw = new FileWriter("Day13\\c.txt");
        prop.store(fw,"我不会写");
        fw.close();
    }
}
